﻿namespace Agile.Service.Admin.WebApi.Authorization;

public sealed class PermissionLocalHandler : AbstractPermissionHandler
{
    private readonly ISysUserService _sysUserService;

    public PermissionLocalHandler(ISysUserService sysUserService) => _sysUserService = sysUserService;

    protected override async Task<bool> CheckUserPermissions(long userId, IEnumerable<string> requestPermissions, string userBelongsRoleIds)
    {
        //var permissions = await _sysUserService.GetPermissionsAsync(userId, requestPermissions, userBelongsRoleIds);
        //return permissions.IsNotNullOrEmpty();

        await Task.CompletedTask;

        return true;
    }
}